<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"> 

<h:head></h:head> 
<body> 
	<h:form>
	<!-- User's options from this page -->
		<p:menubar>
			
			<p:menuitem value="Undo" action="eventsCreatedPage"/>
 			<p:menuitem value="Logout #{userBean.name}" action="#{loginBean.logout()}"/>
		</p:menubar>
	</h:form>
	
	<!-- Modification form -->
	<h:form>
        Date<br/>
        <p:calendar value="#{eventsCreatedBean.date}"  pattern="MM/dd/yyyy HH:mm"/><br/>
		Duration<br/>
		<p:calendar value="#{eventsCreatedBean.duration}"  timeOnly="true" pattern="HH:mm"/><br/>
		Name<br/>
		<p:inputText value="#{eventsCreatedBean.name}"/><br/>
		Place<br/>
		<p:inputText value="#{eventsCreatedBean.place}"/><br/>
		
		<p:selectBooleanCheckbox value="#{eventsCreatedBean.outdoor}" itemLabel="OUTDOOR: is the event outdoor?"/><br/>
		<p:selectBooleanCheckbox value="#{eventsCreatedBean.publicVisibility}" itemLabel="VISIBILITY: is this a public event?" /><br/>
		
		Description<br/>
		<p:inputTextarea value="#{eventsCreatedBean.description}"/><br/>
		Invites<br/>
		<p:inputTextarea value="#{eventsCreatedBean.invites}"/><br/>
		Organizers<br/>
		<p:inputTextarea value="#{eventsCreatedBean.organizers}" /><br/>
		<p:commandButton value="Save" action="#{eventsCreatedBean.storeEvent()}"/>
		<p:commandButton value="Delete" action="#{eventsCreatedBean.delete()}"/>
		
	</h:form>

</body> 
</html>
